package com.dormitory.management.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 房间表
 * </p>
 *
 * @author
 * @since 2021-12-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Room对象", description="房间表")
public class Room implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "房间id")
    @TableId(value = "id", type = IdType.NONE)
    private Long id;

    @ApiModelProperty(value = "房间号")
    private Integer room;

    @ApiModelProperty(value = "对应楼栋id")
    private Long buildingId;

    @ApiModelProperty(value = "总人数")
    private Integer totalNumber;

    @ApiModelProperty(value = "当前人数")
    private Integer currentNumber;

    @ApiModelProperty(value = "寝室长学号")
    private String leaderId;


}
